<template>
  <div class="box">
    <div class="title">{{ title }}</div>
    <slot></slot>
    <div class="footer"></div>
  </div>
</template>

<script setup lang="ts">
const props = defineProps(['title'])
</script>

<style lang="scss" scoped>
.box {
  height: 300px;
  border: 1px solid rgba(25, 186, 139, 0.17);
  margin-bottom: 10px;
  background-image: url(./assets/line.png);
  background-color: rgba($color: #ffffff, $alpha: 0.04);
  position: relative;

  .title {
    font-size: 26px;
    text-align: center;
    line-height: 50px;
    color: white;
  }
  &::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid #02a6b5;
    border-left: 2px solid #02a6b5;
  }

  &::after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid #02a6b5;
    border-right: 2px solid #02a6b5;
  }

  .footer {
    &::before {
      content: '';
      display: block;
      position: absolute;
      left: 0;
      bottom: 0;
      width: 10px;
      height: 10px;
      border-bottom: 2px solid #02a6b5;
      border-left: 2px solid #02a6b5;
    }

    &::after {
      content: '';
      display: block;
      position: absolute;
      right: 0;
      bottom: 0;
      width: 10px;
      height: 10px;
      border-bottom: 2px solid #02a6b5;
      border-right: 2px solid #02a6b5;
    }
  }
}
</style>
